/*
 *   Copyright 1999-2016 Asiainfo Technologies(China),Inc.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 *
 */

package com.asiainfo.redis.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @version v 1.0 on 2016/7/12 15:17
 * @auther william.xu
 */
@Entity
@Table(name="REDIS_OPER_LOG")
@SequenceGenerator(name="REDIS_OPER_LOG_SEQ_",sequenceName="REDIS_OPER_LOG_SEQ",allocationSize=1)
public class OperLog {
    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE,generator="REDIS_OPER_LOG_SEQ_")
    @Column(name = "ID")
    private Long id;

    @Column(name = "LOGIN_NAME")
    private String loginName;

    @Column(name = "CLIENT_IP")
    private String clientIp;

    @Column(name = "OPER_URL")
    private String operUrl;

    @Lob
    @Column(name = "REQUEST_PARAMS")
    private String requestParams;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getOperUrl() {
        return operUrl;
    }

    public void setOperUrl(String operUrl) {
        this.operUrl = operUrl;
    }

    public String getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(String requestParams) {
        this.requestParams = requestParams;
    }
}
